package edu.sctu.practice.class02.Wangpeng.Assign09;

/**
 * Created by wp on 2015/12/10.
 */
public class Class3 {
    public static void main(String args[]) {
        int a[] = {34, 12, 8, 67, 88, 23, 98, 101, 119, 56};
        sort_Demo m1 = new sort_Demo();
        sub_sort_Demo m2 = new sub_sort_Demo();
        System.out.println("排序前的数据为：");
        for (int i = 0; i < 10; i++)
            System.out.print("  " + a[i]);
        m1.sort(a.length, a);
        System.out.println("\n按升序排列的数据为：");
        for (int i = 0; i < 10; i++)
            System.out.print("  " + a[i]);
        m2.sort(a.length, a);
        System.out.println("\n按降序排列的数据为：");
        for (int i = 0; i < 10; i++)
            System.out.print("  " + a[i]);}
}
